package com.qianfeng.wuyang.himalaya.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.qianfeng.wuyang.himalaya.R;
import com.qianfeng.wuyang.himalaya.activity.RegisterActivity;

/**
 * A simple {@link Fragment} subclass.
 */
public class RbMineFragment extends Fragment implements View.OnClickListener {
    private LinearLayout linearLayout;
    private FrameLayout frameLayout;
    private ImageView imageView;


    public RbMineFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_rb_mine, container, false);
        initView(view);
        return view;
    }

    private void initView(View view) {
        linearLayout = (LinearLayout) view.findViewById(R.id.Rb_DownloadMainAnchor);
        frameLayout = (FrameLayout) view.findViewById(R.id.Rb_DownloadMainLuYin);
        imageView= (ImageView) view.findViewById(R.id.Rb_DownloadMainImage);
        ImageView imageViewPd= (ImageView) view.findViewById(R.id.Rb_DownloadMainProduce);
        TextView textView= (TextView) view.findViewById(R.id.Rb_DownloadMainRegister);
        LinearLayout linearLayoutmanager= ((LinearLayout) view.findViewById(R.id.Rb_DownloadMainMessage));
        linearLayoutmanager.setOnClickListener(this);
        textView.setOnClickListener(this);
        imageViewPd.setOnClickListener(this);
        linearLayout.setOnClickListener(this);
        frameLayout.setOnClickListener(this);
        imageView.setOnClickListener(this);


    }

    @Override
    public void onClick(View view) {
        Intent intent=new Intent(getContext(), RegisterActivity.class);
        startActivity(intent);

    }
}

